package com.chefu.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chefu.common.pojo.PageResult;
import com.chefu.system.pojo.Module;
import com.chefu.system.pojo.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-30
 */
public interface RoleService extends IService<Role> {

    PageResult<Role> findByPage(Integer page, Integer pageSize, String roleName);

    void insert(Role role, List<Long> moduleIds);


    void updateRole(Role role, List<Long> moduleIds);

    void delete(Long roleId);
}
